package com.spa.application.dto.admin.menu;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.List;

/**
 * 返回给前端的资源.
 *
 * @author liangjun
 */
@Data
public class MenuDTO {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long parentId;

    private String resourceCode;

    private String name;

    private String resourceShortName;

    private Integer resourceType;

    private String path;

    private String icon;

    private Integer resourceSort;

    private Integer state;

    private List<MenuDTO> children;
}
